package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.NewsCatalog;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;

public interface INewsCatalogService {
    /**
     * 分页查询日报目录
     * @param qo
     * @return
     */
    PageInfo query(QueryObject qo);

    /**
     * 目录的增加/修改
     * @param newsCatalog
     */
    void saveOrUpdate(NewsCatalog newsCatalog);

    List<NewsCatalog> selectAll();
}
